package com.extend.test;

import java.util.Set;

public class XmlFactory extends AbsrtactorFactory{
	private AbsrtactorFactory parentFactory;
	
	public XmlFactory(AbsrtactorFactory parentFactory) {
		super();
		this.parentFactory = parentFactory;
	}

	@Override
	void load() {
		put("xml", "xmlbean");
	}

	@Override
	Object getBean(String key) {
		Set<String> keys=Iterator();
		for (String string : keys) {
			System.out.println(get(string));
		}
		return null;
	}

	@Override
	public void put(String key, String value) {
		parentFactory.put(key, value);
	}

	@Override
	public Set<String> Iterator() {
		return parentFactory.Iterator();
	}

	@Override
	public String get(String key) {
		return parentFactory.get(key);
	}
	
	

}
